﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("skuService", function (httpService) {
        var methods = {
            get: function (params) {
                return httpService.get("/sku/get", params);
            },
            gets: function (params) {
                return httpService.get("/sku/gets", params);
            },
            query: function (params) {
                return httpService.query("/sku/gets", params);
            },
            save: function (params) {
                return httpService.post("/sku/save", params);
            },
            "delete": function (id) {
                return httpService.delete("/sku/delete/" + id);
            }
        }
        return methods;
    });
});